package com.shark.open.controller;

import com.shark.open.criteria.FuelOrderCriteria;
import com.shark.open.service.TradeService;
import com.shark.open.vo.PageVo;
import com.shark.utils.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
//import com.shark.utils.PageVo;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/trade")
public class TradeController {
    @Resource
    private TradeService tradeService;

    @PostMapping("/listFuelOrder")
    public Result listFuelOrder(@RequestBody FuelOrderCriteria criteria) {
        PageVo pageVo = tradeService.listFuelOrder(criteria);
        return Result.ok(pageVo).setLogResult(Boolean.FALSE);
    }

}
